<?php

namespace App\Http\Requests\Admin\VipPackage;
use App\Http\Requests\Request;

class StoreVipPackageRequest extends Request{
    public function authorize(){
        return true;
    }
    public function rules(){
        return [
            'vipname' => 'required',
            'vip_days'=>'integer',
            'vip_resume_number'=>'integer',
            'vip_integral'=>'integer',
            'vip_post_number'=>'integer',
            'resume_number'=>'integer',
            'integralv'=>'integer',
            'money'=>'numeric',
        ];
    }
    public function messages(){
        return [
            'vipname.required' => '套餐名称必须填写',
            'vip_days.integer' => '套餐天数必须是整数',
            'vip_resume_number.integer'=>'会员期内简历数必须是整数！',
            'vip_integral.integer'=>'会员期内积分必须是整数！',
            'vip_post_number.integer'=>'会员期内职位数必须是整数！',
            'resume_number.integer'=>'非会员简历数必须是整数！',
            'money.numeric'=>'金额必须是一个数字！',
        ];
    }
}
